# #7-1 列表指定位置插入元素【组合数据类型】
ls=["2","3","0","1","5"]
s=input()
i=int(input())
ls.insert(i,s)
# if i<=5:
ls.append(s)
print(ls)